<template>
  <div id="app">
    <v-header></v-header>
    <v-search></v-search>
    <v-nav></v-nav>
    <router-view></router-view>
    <v-footer></v-footer>
  </div>
</template>

<script>
import vHeader from '@/components/header'
import vSearch from '@/components/search'
import vNav from '@/components/nav'
import vFooter from '@/components/footer'

export default {
  name: 'App',
  created () {
    this.$http.get('api/enterprise').then((response) => {
      const data = response.data.data
      this.$store.state.info = data
    }).catch((err) => {
      console.log(err, 1111)
    })
  },
  components: {
    vHeader,
    vSearch,
    vNav,
    vFooter
  }
}
</script>

<style>
</style>
